package com.gemme.gemme.setting;

import android.os.Bundle;
import android.text.TextUtils;

import com.gemme.gemme.BaseActivity;
import com.gemme.gemme.R;
import com.gemme.gemme.view.GmWebView;
import com.gemme.gemme.view.Topview;
import com.jaeger.library.StatusBarUtil;

public class GmWebActivity extends BaseActivity  {
    GmWebView gmwebview;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_webview_gm);
        initTop();

        gmwebview = findViewById(R.id.gmwebview);
       /* String url = "http://47.114.162.17/protocol/index.html";
        gmwebview.setUrl(url);*/
       initIntentData();
    }

    private void initIntentData() {
        try {
            String url = getIntent().getStringExtra("data");
            if(TextUtils.isEmpty(url))
                return;
            gmwebview.setUrl(url);
        }catch (Exception e){

        }
    }


    private void initTop() {
//        StatusBarUtil.setColor(this,getResources().getColor(R.color.white_color) );
        StatusBarUtil.setTransparent(this);
//        StatusBarUtil.setTranslucent(this,250);
        Topview topview = findViewById(R.id.topview);
        topview.setContentText("");
    }



}